package com.qfedu.provider.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qfedu.provider.entity.DbVideo;
import com.qfedu.params.AddVideo;
import com.qfedu.utils.R;

import java.util.List;

/**
* @author Administrator
* @description 针对表【db_video(短视频)】的数据库操作Service
* @createDate 2024-11-23 11:16:39
*/
public interface DbVideoService extends IService<DbVideo> {
    R publish(AddVideo addVideo,Integer uid);

    List<DbVideo> findByUserId(Integer userId);

    List<DbVideo> findAll();



    R findByTypeId(Integer typeId);

    R deleteById(Integer videoId);
    /**
     * 根据类型查询视频
     * @param typeId
     * @return
     */
    R queryAllVideoByType(Integer typeId);
}
